package com.baizhi.springbootday0101;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@MapperScan("com.baizhi.springbootday0101.dao")
@EnableTransactionManagement
public class SpringBootDay0101Application extends SpringBootServletInitializer {
	public static void main(String[] args) {
		//启动springboot的相关内置组建  启动项目
		SpringApplication.run(SpringBootDay0101Application.class);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SpringBootDay0101Application.class);
	}
}
